package com.information.manage.model.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UpdateManuQuery {

    @ApiModelProperty("主键id")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty("标题")
    @Size(min = 1, max = 80)
    private String title;   // 标题

    @ApiModelProperty("标题")
    @Size(min = 1, max = 80)
    private String author;  //作者

    @ApiModelProperty("来源")
    @Size(min = 1, max = 80)
    private String origin;   // 来源

    @ApiModelProperty("内容")
    @Size(min = 1, max = 200)
    private String content;   // 内容

}
